package com.gz.university.crm.service;

import java.util.List;

import com.gz.university.crm.entity.SysPopedomPrivilege;

public interface ISysPopedomPrivilegeService {
	public static final String SERVICE_NAME = "com.gz.university.crm.service.impl.SysPopedomPrivilegeServiceImpl";

	/**
	 * 设置权限组的权限
	 * 
	 * @param roleId
	 * @param popedomModules
	 */
	void updatePopedom(Integer roleId, String[] popedomModules);

	/**
	 * 根据roleId查询所有的操作权限,操作SysPopedomPrivilege
	 * 
	 * @param roleId
	 * @return
	 */
	List<SysPopedomPrivilege> findSysPopedomPrivilegesByRoleId(Integer roleId);

	/**
	 * 查询SysPopedomPrivilege所有的数据
	 * 
	 * @return
	 */
	List<SysPopedomPrivilege> findAllSysPopedomPrivilege();

	/**
	 * 根据roleId删除所有的PopedomPrivilege权限资源，popedomModules是赋给角色新的权限资源
	 * 
	 * @param roleId
	 * @param popedomModules
	 */
	void deletePopedomPrivilegesByRoleId(Integer roleId, String[] popedomModules);
}
